//
//  xsSelectAddMaterialView.h
//  digital_robot_demo
//
//  Created by xskj on 2024/8/29.
// 选择添加素材
// @[@"全部",@"图片",@"视频"]

#import <UIKit/UIKit.h>
#import "NSString+WordSize.h"
#import "xsSelectAddMaterialCollectionView.h"

NS_ASSUME_NONNULL_BEGIN


@protocol xsSelectAddMaterialViewProtoCol <NSObject>

@optional
- (void)xsSelectAddMaterialVXbuttonEvent:(UIButton *)button;

@end

@interface xsSelectAddMaterialView : UIView

@property (nonatomic,assign)id<xsSelectAddMaterialViewProtoCol> delegate;


- (instancetype)initWithButtonTitles:(NSArray *)buttonTitles;
- (void)xsChangeFrame;

//collectionType;// 0全部 3图片 1视频
// 0时 fileType传@""  3时fileType传@"3" 1时fileType传@"1"
@property (nonatomic,copy)void (^xsSelectAddMaterialCellCallbackBlock)(xsSelectAddMaterialCollectionViewCellModel *cbModel ,NSInteger collecionTyp);

//collectionType;// 0全部 3图片 1视频
@property (nonatomic,copy)void (^xsSelectAddMaterialCellDeleteButtonCallbackBlock)(xsSelectAddMaterialCollectionViewCellModel *cbModel ,NSInteger collecionTyp);

//collectionType;// 0全部 3图片 1视频
- (void)xsUpdataMaterialWithModel:(xsSelectAddMaterialCollectionViewCellModel *)upMaterialModel  withCollectionType:(NSInteger)collectionType;

//collectionType;// 0全部 3图片 1视频
- (void)bossIPUniappVuePageUploadImageOrVideoSuccessfulWith:(NSInteger)collectionType;

// 删除成功后vue传递过来删除的Id
- (void)xsSelectAddMaterialVUniappVueDeleteMaterialSuccessWithId:(NSInteger)Id;

// 设置 全部 图片  视频collectionview的数据全部修改为为选中
- (void)xsUpdateAllImageVideoModelToNotSelect;

@end

NS_ASSUME_NONNULL_END
